﻿@*@using WeChat.Models*@
@model WeChat.Models.MyScoreView
    @{
        ViewBag.Title = "成绩列表";
    }

    <!DOCTYPE html>
    <html lang="en" class="company-list-html">
    <head>
        <meta charset="utf-8">
        <meta content="yes" name="apple-mobile-web-app-capable">
        <meta content="yes" name="apple-touch-fullscreen">
        <meta content="telephone=no,email=no" name="format-detection">
        <script src="~/Content/wechat/js/flexible.debug.js"></script>
        <link href="~/Content/wechat/css/phone-account-h5.css" rel="stylesheet" />

        <link rel="apple-touch-icon" href="favicon.png">
        <link rel="Shortcut Icon" href="favicon.png" type="image/x-icon">
        <title>个人中心</title>
        <script src="~/Scripts/jquery-1.10.2.min.js"></script>
        <script>
            $(function () {
                debugger;

                var oppid = "@ViewData["openid"]";
                debugger
                //$.ajax({
                //    type: "Post",
                //    url: "/WeiXin/Binding",
                //    data: {userName:name, openid:oppid},
                //    dataType: "json",
                //    success: function(data){
                //        debugger
                //        if(data.success){
                //            alert("验证成功");
                //            window.location.href = "/WeiXin/OAuthSnsApiUserInfo"
                //        }else
                //        {
                //            alert("验证失败");
                //        }
                //    },
                //    error:function(data){
                //        alert("验证失败");
                //    }
                //});


            });
        </script>
        <style>
                /*html,body{
                height: 100vh;
            }*/
        </style>
    </head>
    <body>
        <div class="company-list-bg">
            <header>
                <i class="hat"></i><label>我的企业文化成绩</label>
            </header>
            <ul>
                @*@if (ViewData["list"] != null)
                    {
                        foreach (var v in ViewData["list"] as List<Achievement>)
                        {
                                <a href="/WeiXin/ScoreDetail?id=@v.AchievementId">

                                    <li>@v.Theme</li>
                                </a>
                                }
                                }*@
                @if (Model.MyScoreList != null)
                {
                    foreach (var v in Model.MyScoreList)
                    {
                        <a href="/WeiXin/ScoreDetail?id=@v.AchievementId">


                            <li>@v.Theme</li>
                        </a>
                    }
                }
                else
                {
                    <li>暂无成绩记录</li>
                }

            </ul>
        </div>

    </body>
</html>
